//
//  AppDelegate.swift
//  SwiftCTRouter
//
//  Created by ToForgive on 11/15/2020.
//  Copyright (c) 2020 ToForgive. All rights reserved.
//

import UIKit
import SwiftCTRouter

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    lazy var rootViewController: UIViewController = {
        let homeVC = ViewController()
        let nav = UINavigationController.init(rootViewController: homeVC)
        let tabbarVC: UITabBarController = .init()
        tabbarVC.viewControllers = [nav]
        return tabbarVC
    }()
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        window = UIWindow.init(frame: UIScreen.main.bounds)
        
        window?.rootViewController = rootViewController
        window?.makeKeyAndVisible()
        return true
    }


}


